/**
 * View
 * @Author Ace.c
 * @Create 2016-09-05 15:43
 */
class ComponentEx extends eui.Component {
    protected _skinState: string = '';

    id: any;
    data: any;
    initComplete: boolean = false;

    constructor() {
        super();
    }

    childrenCreated() {
        super.childrenCreated();

        this.initComplete = true;
    }

    show() {
        this.visible = true;
    }

    hide() {
        this.visible = false;
    }

    get skinState() {
        return this._skinState;
    }

    set skinState(va: string) {
        this._skinState = va;

        this.currentState = va;
        this.invalidateState();
    }
}